﻿@{
    ViewBag.Title = "tb_user_permit维护";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
	<form id="listForm" method="get" action="/User_permit/List/">
	<div id="toolBar">
        <a class="add" href="/User_permit/Edit/"><span>添加</span></a>
		<a class="delete" href="javascript:void()" rel="/User_permit/Delete/"><span>删除</span></a>
	    |
        <span>关键字：</span><span><input type="text" name="keywords" value="@Request["Keywords"]"/></span>			
		<input type="submit" value="查找" />
	</div>
	<div id="list">
		<table>
			<tr>
                <th style="width: 25px;" align="center" title="全选/取消">
                    <input type="checkbox" id="select_all" onclick="sel_all()"/>
                </th>
                <th>UserName</th>
                <th>RoleCode</th>
                <th>ProjectCode</th>
                <th>PermitGroupCode</th>
                <th>PermitCode</th>
                <th>CreateBy</th>
                <th>UpdateBy</th>
                <th class="thDateTime">
                    最后更新时间
                </th>
                <th class="thDateTime">
                    创建时间
                </th>
                <th style="width: 60px;" align="center">
                    操作
                </th>
            </tr>
            @foreach(var data in Model) 
               {
            <tr>
                <td align="center"><input type="checkbox" name="ids" value="@data.Id" /></td>
                <td>@data.UserName</td>
                <td>@data.RoleCode</td>
                <td>@data.ProjectCode</td>
                <td>@data.PermitGroupCode</td>
                <td>@data.PermitCode</td>
                <td>@data.CreateBy</td>
                <td>@data.UpdateBy</td>
                <td class="tdDateTime">@data.UpdateDate</td>
                <td class="tdDateTime">@data.CreateDate</td>
                <td>
                    <a href="/User_permit/Edit/@data.Id" title="修改tb_user_permit" >修改</a>
                    <a href="/User_permit/Detail/@data.Id" title="查看tb_user_permit详细信息" >详细</a>
                </td>
            </tr>
            }
		</table>
	</div>
	@Html.Raw(PageControl.Render(Model))
	</form>
